﻿using UnityEngine;
using System.Collections;

public class CellState : AbstractState {
	private int x = -1;
	private int y = -1;
	private int z = -1;
	
	public int X
	{
		get
		{
			return x;
		}
		set
		{
			if (ReadOnly)
			{
				LogErrorWriteToReadOnly();
				return;
			}
			x = value;
		}
	}
	
	public int Y
	{
		get
		{
			return y;
		}
		set
		{
			if (ReadOnly)
			{
				LogErrorWriteToReadOnly();
				return;
			}
			y = value;
		}
	}

	public int Z
	{
		get
		{
			return z;
		}
		set
		{
			if (ReadOnly)
			{
				LogErrorWriteToReadOnly();
				return;
			}
			z = value;
		}
	}
}
